Skip to content

feat(azure/cosmos): add Azure CosmosDB integration#7943

Draft
rithikanarayan wants to merge 4 commits intomasterfrom
rithika.narayan/APMSVLS-419
Draft

feat(azure/cosmos): add Azure CosmosDB integration#7943
rithikanarayan wants to merge 4 commits intomasterfrom
rithika.narayan/APMSVLS-419

Conversation

@rithikanarayan
Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Additional Notes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Overall package size

Self size: 5.48 MB
Deduped: 6.32 MB
No deduping: 6.32 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-prod-us1-5
Copy link
Copy Markdown

datadog-prod-us1-5 bot commented Apr 7, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Other Violations

🧪 2 Tests failed

should keep docs/API.md <h5> plugin anchors aligned with index.d.ts from Mocha Tests   View in Datadog   (Fix with Cursor)
Missing <h5> anchor in docs/API.md for plugin: azure-cosmos

      + expected - actual

      -false
      +true
      
AssertionError [ERR_ASSERTION]: Missing <h5> anchor in docs/API.md for plugin: azure-cosmos
    at Context.<anonymous> (packages\dd-trace\test\plugins\plugin-structure.spec.js:218:14)
    at process.processImmediate (node:internal/timers:504:21)
should keep docs/API.md plugin list aligned with index.d.ts from Mocha Tests   View in Datadog   (Fix with Cursor)
Missing plugin in docs/API.md: azure-cosmos

      + expected - actual

      -false
      +true
      
AssertionError [ERR_ASSERTION]: Missing plugin in docs/API.md: azure-cosmos
    at Context.<anonymous> (packages\dd-trace\test\plugins\plugin-structure.spec.js:206:14)
    at process.processImmediate (node:internal/timers:504:21)

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 60.87%
Overall Coverage: 62.48% (-6.22%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: bdeb52d | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 7, 2026

Benchmarks

Benchmark execution time: 2026-04-07 20:19:25

Comparing candidate commit bdeb52d in PR branch rithika.narayan/APMSVLS-419 with baseline commit efc9681 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 228 metrics, 32 unstable metrics.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 60.86957% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.35%. Comparing base (efc9681) to head (bdeb52d).

Files with missing lines Patch % Lines
packages/dd-trace/src/plugins/index.js 59.09% 45 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7943      +/-   ##
==========================================
- Coverage   74.25%   69.35%   -4.91%     
==========================================
  Files         769      675      -94     
  Lines       36068    31038    -5030     
==========================================
- Hits        26783    21526    -5257     
- Misses       9285     9512     +227     
Flag Coverage Δ
aiguard-macos 39.44% <2.67%> (-0.11%) ⬇️
aiguard-ubuntu 39.56% <2.67%> (-0.11%) ⬇️
aiguard-windows 39.23% <2.67%> (-0.11%) ⬇️
apm-capabilities-tracing-macos ?
apm-capabilities-tracing-ubuntu ?
apm-capabilities-tracing-windows ?
apm-integrations-child-process 38.74% <3.57%> (-0.10%) ⬇️
apm-integrations-couchbase-18 37.55% <4.46%> (-0.07%) ⬇️
apm-integrations-couchbase-eol 38.04% <3.57%> (-0.10%) ⬇️
apm-integrations-oracledb 37.87% <4.46%> (-0.10%) ⬇️
appsec-express 55.38% <8.03%> (-0.08%) ⬇️
appsec-fastify 51.71% <9.82%> (-0.08%) ⬇️
appsec-graphql 51.86% <10.71%> (-0.08%) ⬇️
appsec-kafka 44.48% <4.46%> (-0.09%) ⬇️
appsec-ldapjs 44.11% <3.57%> (-0.09%) ⬇️
appsec-lodash 43.70% <4.46%> (-0.08%) ⬇️
appsec-macos 58.08% <6.25%> (-0.07%) ⬇️
appsec-mongodb-core 48.89% <5.35%> (-0.08%) ⬇️
appsec-mongoose 49.55% <8.03%> (-0.08%) ⬇️
appsec-mysql 51.07% <8.03%> (-0.08%) ⬇️
appsec-node-serialize 43.29% <3.57%> (-0.09%) ⬇️
appsec-passport 47.75% <5.35%> (-0.09%) ⬇️
appsec-postgres 50.70% <7.14%> (-0.08%) ⬇️
appsec-sourcing 42.54% <3.57%> (-0.09%) ⬇️
appsec-stripe 44.73% <6.25%> (-0.09%) ⬇️
appsec-template 43.45% <4.46%> (-0.09%) ⬇️
appsec-ubuntu 58.17% <6.25%> (-0.07%) ⬇️
appsec-windows 57.89% <6.25%> (-0.07%) ⬇️
instrumentations-instrumentation-bluebird 32.33% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-body-parser 40.63% <4.46%> (-0.10%) ⬇️
instrumentations-instrumentation-child_process 38.07% <3.57%> (-0.10%) ⬇️
instrumentations-instrumentation-cookie-parser 34.36% <4.46%> (-0.09%) ⬇️
instrumentations-instrumentation-express 34.67% <5.35%> (-0.10%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 34.49% <4.46%> (-0.09%) ⬇️
instrumentations-instrumentation-express-session 40.27% <5.35%> (-0.10%) ⬇️
instrumentations-instrumentation-fs 32.01% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-generic-pool 29.41% <50.00%> (+<0.01%) ⬆️
instrumentations-instrumentation-http 39.99% <4.46%> (-0.10%) ⬇️
instrumentations-instrumentation-knex 32.39% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-mongoose 33.51% <6.25%> (-0.10%) ⬇️
instrumentations-instrumentation-multer 40.38% <4.46%> (-0.10%) ⬇️
instrumentations-instrumentation-mysql2 38.40% <3.57%> (-0.10%) ⬇️
instrumentations-instrumentation-passport 44.16% <5.35%> (-0.09%) ⬇️
instrumentations-instrumentation-passport-http 43.84% <5.35%> (-0.09%) ⬇️
instrumentations-instrumentation-passport-local 44.37% <5.35%> (-0.09%) ⬇️
instrumentations-instrumentation-pg 37.84% <3.57%> (-0.10%) ⬇️
instrumentations-instrumentation-promise 32.26% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-promise-js 32.26% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-q 32.31% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-url 32.23% <2.67%> (-0.10%) ⬇️
instrumentations-instrumentation-when 32.28% <2.67%> (-0.10%) ⬇️
llmobs-ai 41.37% <4.46%> (-0.10%) ⬇️
llmobs-anthropic 40.84% <6.25%> (-0.10%) ⬇️
llmobs-bedrock 39.32% <7.14%> (-0.09%) ⬇️
llmobs-google-genai 39.87% <8.03%> (-0.09%) ⬇️
llmobs-langchain 39.34% <9.82%> (-0.08%) ⬇️
llmobs-openai 44.12% <6.25%> (-0.09%) ⬇️
llmobs-vertex-ai 40.13% <6.25%> (-0.09%) ⬇️
platform-core 31.47% <ø> (ø)
platform-esbuild 34.42% <ø> (ø)
platform-instrumentations-misc 34.19% <100.00%> (+0.07%) ⬆️
platform-shimmer 37.56% <ø> (ø)
platform-unit-guardrails 32.89% <ø> (ø)
platform-webpack 19.88% <5.21%> (+0.02%) ⬆️
plugins-azure-durable-functions 25.86% <100.00%> (+0.11%) ⬆️
plugins-azure-event-hubs 26.02% <100.00%> (+0.11%) ⬆️
plugins-azure-service-bus 25.38% <100.00%> (+0.11%) ⬆️
plugins-bullmq 43.60% <5.35%> (-0.10%) ⬇️
plugins-cassandra 38.02% <4.46%> (-0.10%) ⬇️
plugins-cookie 27.08% <100.00%> (+0.11%) ⬆️
plugins-cookie-parser 26.86% <100.00%> (+0.11%) ⬆️
plugins-crypto 26.73% <ø> (ø)
plugins-dd-trace-api 38.43% <3.57%> (-0.11%) ⬇️
plugins-express-mongo-sanitize 27.01% <100.00%> (+0.11%) ⬆️
plugins-express-session 26.82% <100.00%> (+0.11%) ⬆️
plugins-fastify 42.36% <9.82%> (-0.10%) ⬇️
plugins-fetch 38.51% <4.46%> (-0.13%) ⬇️
plugins-fs 38.75% <2.67%> (-0.10%) ⬇️
plugins-generic-pool 26.06% <100.00%> (+0.11%) ⬆️
plugins-google-cloud-pubsub 45.68% <8.92%> (-0.09%) ⬇️
plugins-grpc 41.01% <5.35%> (-0.10%) ⬇️
plugins-handlebars 27.05% <100.00%> (+0.11%) ⬆️
plugins-hapi 40.41% <6.25%> (+0.04%) ⬆️
plugins-hono 40.60% <5.35%> (-0.24%) ⬇️
plugins-ioredis 38.60% <3.57%> (-0.10%) ⬇️
plugins-knex 26.68% <100.00%> (+0.11%) ⬆️
plugins-langgraph 37.99% <4.46%> (-0.10%) ⬇️
plugins-ldapjs 24.55% <100.00%> (+0.11%) ⬆️
plugins-light-my-request 26.42% <100.00%> (+0.11%) ⬆️
plugins-limitd-client 32.61% <2.67%> (-0.10%) ⬇️
plugins-lodash 26.15% <100.00%> (+0.11%) ⬆️
plugins-mariadb 39.66% <3.57%> (-0.05%) ⬇️
plugins-memcached 38.34% <3.57%> (-0.11%) ⬇️
plugins-microgateway-core 39.41% <5.35%> (-0.03%) ⬇️
plugins-moleculer 40.63% <6.25%> (-0.10%) ⬇️
plugins-mongodb 39.27% <4.46%> (-0.10%) ⬇️
plugins-mongodb-core 39.11% <3.57%> (-0.10%) ⬇️
plugins-mongoose 38.92% <6.25%> (-0.10%) ⬇️
plugins-multer 26.82% <100.00%> (+0.11%) ⬆️
plugins-mysql 39.45% <3.57%> (-0.10%) ⬇️
plugins-mysql2 39.40% <3.57%> (-0.10%) ⬇️
plugins-node-serialize 27.12% <100.00%> (+0.11%) ⬆️
plugins-opensearch 37.74% <5.35%> (-0.10%) ⬇️
plugins-passport-http 26.87% <100.00%> (+0.11%) ⬆️
plugins-postgres 35.54% <4.46%> (-0.09%) ⬇️
plugins-process 26.73% <ø> (ø)
plugins-pug 27.08% <100.00%> (+0.11%) ⬆️
plugins-redis 39.04% <5.35%> (-0.10%) ⬇️
plugins-router 43.36% <4.46%> (-0.10%) ⬇️
plugins-sequelize 25.66% <100.00%> (+0.11%) ⬆️
plugins-test-and-upstream-amqp10 38.61% <3.57%> (-0.10%) ⬇️
plugins-test-and-upstream-amqplib 44.36% <3.57%> (-0.11%) ⬇️
plugins-test-and-upstream-apollo 39.23% <7.14%> (-0.09%) ⬇️
plugins-test-and-upstream-avsc 38.69% <3.57%> (-0.10%) ⬇️
plugins-test-and-upstream-bunyan 33.94% <3.57%> (-0.10%) ⬇️
plugins-test-and-upstream-connect 40.93% <4.46%> (-0.10%) ⬇️
plugins-test-and-upstream-graphql 40.27% <3.57%> (-0.10%) ⬇️
plugins-test-and-upstream-koa 40.52% <7.14%> (-0.10%) ⬇️
plugins-test-and-upstream-protobufjs 38.92% <3.57%> (-0.10%) ⬇️
plugins-test-and-upstream-rhea 44.39% <3.57%> (-0.07%) ⬇️
plugins-undici 39.36% <5.35%> (-0.09%) ⬇️
plugins-url 26.73% <ø> (ø)
plugins-valkey 38.17% <3.57%> (-0.24%) ⬇️
plugins-vm 26.73% <ø> (ø)
plugins-winston 34.26% <5.35%> (-0.10%) ⬇️
plugins-ws 42.12% <5.35%> (-0.10%) ⬇️
profiling-macos 40.65% <2.67%> (-0.10%) ⬇️
profiling-ubuntu 40.77% <2.67%> (-0.10%) ⬇️
profiling-windows 42.29% <2.67%> (-0.10%) ⬇️
serverless-azure-functions-client 25.74% <100.00%> (+0.11%) ⬆️
serverless-azure-functions-eventhubs 25.74% <100.00%> (+0.11%) ⬆️
serverless-azure-functions-servicebus 25.74% <100.00%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant